﻿#include <string>
#include <iostream>

using namespace std;

class Account {
private:
	// 账户名称
	string full_name;
	// 账号
	string number;
	// 账户余额
	long crnt_balance;

public:
	Account(string name, string num, long amnt) {
		full_name = name;
		number = num;
		crnt_balance = amnt;
	}
	void deposit(long amnt) {
		crnt_balance += amnt;
	}
	void withdraw(long amnt) {
		crnt_balance -= amnt;
	}
	string display() {
		return full_name + "的账户：" + number + "，余额是：" + to_string(crnt_balance);
	}
};

int main() 
{
	Account liyang("李阳", "12345678", 1000);
	Account zhouyan("周燕", "87654321", 200);

	cout << liyang.display() << endl;

	liyang.deposit(100);
	
	cout << liyang.display() << endl;

	cin.get();
}